Integrand size = 24, antiderivative size = 58 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {4 x}{a^3}+\frac {4 i \log (\cos (c+d x))}{a^3 d}-\frac {3 \tan (c+d x)}{a^3 d}+\frac {i \tan ^2(c+d x)}{2 a^3 d} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 45} \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {i \tan ^2(c+d x)}{2 a^3 d}-\frac {3 \tan (c+d x)}{a^3 d}+\frac {4 i \log (\cos (c+d x))}{a^3 d}+\frac {4 x}{a^3} \]
[In]
[Out]
Rule 45
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {i \text {Subst}\left (\int \frac {(a-x)^2}{a+x} \, dx,x,i a \tan (c+d x)\right )}{a^5 d} \\ & = -\frac {i \text {Subst}\left (\int \left (-3 a+x+\frac {4 a^2}{a+x}\right ) \, dx,x,i a \tan (c+d x)\right )}{a^5 d} \\ & = \frac {4 x}{a^3}+\frac {4 i \log (\cos (c+d x))}{a^3 d}-\frac {3 \tan (c+d x)}{a^3 d}+\frac {i \tan ^2(c+d x)}{2 a^3 d} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.83 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {-8 i \log (i-\tan (c+d x))-6 \tan (c+d x)+i \tan ^2(c+d x)}{2 a^3 d} \]
[In]
[Out]
Time = 0.50 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.17
method | result | size |
derivativedivides | \(-\frac {3 \tan \left (d x +c \right )}{a^{3} d}+\frac {i \left (\tan ^{2}\left (d x +c \right )\right )}{2 a^{3} d}+\frac {4 \arctan \left (\tan \left (d x +c \right )\right )}{a^{3} d}-\frac {2 i \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{a^{3} d}\) | \(68\) |
default | \(-\frac {3 \tan \left (d x +c \right )}{a^{3} d}+\frac {i \left (\tan ^{2}\left (d x +c \right )\right )}{2 a^{3} d}+\frac {4 \arctan \left (\tan \left (d x +c \right )\right )}{a^{3} d}-\frac {2 i \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{a^{3} d}\) | \(68\) |
risch | \(\frac {8 x}{a^{3}}+\frac {8 c}{a^{3} d}-\frac {2 i \left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3\right )}{d \,a^{3} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}+\frac {4 i \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{a^{3} d}\) | \(73\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 113 vs. \(2 (52) = 104\).
Time = 0.24 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.95 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {2 \, {\left (4 \, d x e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, d x + 2 \, {\left (4 \, d x - i\right )} e^{\left (2 i \, d x + 2 i \, c\right )} - 2 \, {\left (-i \, e^{\left (4 i \, d x + 4 i \, c\right )} - 2 i \, e^{\left (2 i \, d x + 2 i \, c\right )} - i\right )} \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right ) - 3 i\right )}}{a^{3} d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3} d} \]
[In]
[Out]
\[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {i \int \frac {\sec ^{6}{\left (c + d x \right )}}{\tan ^{3}{\left (c + d x \right )} - 3 i \tan ^{2}{\left (c + d x \right )} - 3 \tan {\left (c + d x \right )} + i}\, dx}{a^{3}} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.78 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {\frac {i \, \tan \left (d x + c\right )^{2} - 6 \, \tan \left (d x + c\right )}{a^{3}} - \frac {8 i \, \log \left (i \, \tan \left (d x + c\right ) + 1\right )}{a^{3}}}{2 \, d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 128 vs. \(2 (52) = 104\).
Time = 0.59 (sec) , antiderivative size = 128, normalized size of antiderivative = 2.21 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=\frac {2 \, {\left (\frac {2 i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{3}} - \frac {4 i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}{a^{3}} + \frac {2 i \, \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}{a^{3}} + \frac {-3 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 7 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 3 i}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2} a^{3}}\right )}}{d} \]
[In]
[Out]
Time = 3.67 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.71 \[ \int \frac {\sec ^6(c+d x)}{(a+i a \tan (c+d x))^3} \, dx=-\frac {\ln \left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )\,8{}\mathrm {i}+6\,\mathrm {tan}\left (c+d\,x\right )-{\mathrm {tan}\left (c+d\,x\right )}^2\,1{}\mathrm {i}}{2\,a^3\,d} \]
[In]
[Out]